<div id="contener" _height="auto">
	<?php $this->beginWidget('application.widget.site.userLeftWidget'); ?>
	<?php $this->endWidget(); ?>
	<div class="main2">
		<?php $this->beginWidget('application.widget.site.newWidget'); ?>
		<?php $this->endWidget(); ?>
		<div class="right_mainBox2">
			<div class="right_mainBox_top"></div>
			<div class="mainContentBox"> <img src="images/title02.png" alt="追蹤中的活動" title="追蹤中的活動" width="504" height="23" />
			<?php
			if($rowTable){
				foreach($rowTable as $row){
					$condition = new CDbCriteria();
					$condition->addCondition('activityid='.$row->activity->activityid);
					$condition->addCondition('uid='.Yii::app()->user->id);
					$times = Record::model()->count($condition);
					unset($condition);
			?>
				<div class="productBOX"><span class="productBOX_name"><?=$row->activity->activityname?></span>
					<div class="productPic1"><a href="<?=Yii::app()->createUrl('activity/retrack',array('id'=>$row->activityid))?>"><img border="0" width="22" height="23" src="images/productPic1.png"></a></div>
					<div class="productBOX_img"><a href="<?=Yii::app()->createUrl('activity/detail',array('id'=>$row->activityid))?>"><img src="<?=Yii::app()->params['prizePath']?>/<?=$row->activity->prize->pic?>" width="320" height="240" /></a></div>
					<div class="productBOX_staus">
						<ul>
							<li>活動ID： <a href="<?=Yii::app()->createUrl('activity/detail',array('id'=>$row->activityid))?>"><?=$row->activity->serial?></a></li>
							<li>活動類別： <span class="green"><a href="<?=Yii::app()->createUrl('activity/index',array('class'=>'人氣限定'))?>" title="<?=$row->activity->class?>" target="_self"><?=$row->activity->class?></a></span></li>
							<li>商品名稱： <strong><?=$row->activity->prize->prizename?></strong></li>
							<li>可參加次數： <span class="red" style="font-size:12px;"><?=$row->activity->times-$times?></span></li>
							<li>參與人數： <?=count($row->activity->records)?> / <?=$row->activity->people?></li>
							<li>活動資訊：<span class="red" style="font-size:12px; font-weight:normal;"><?=$row->activity->new?></span></li>
						</ul>
					</div>
				</div>
			<?php
				}
			}
			?>
				<div id="pager" align="center" style="margin:10px 0;">
				<?php  
				$this->widget('CLinkPager',array(  
					'header'=>'',  
					'firstPageLabel' => '<<',
					'lastPageLabel' => '>>',
					'prevPageLabel' => '<',
					'nextPageLabel' => '>',
					'pages' => $pages,  
					'maxButtonCount'=>13  
					));  
				?>
				</div>			
			</div>
			<div class="right_mainBox_bottom"></div>
		</div>
		<?php $this->beginWidget('application.widget.site.userRightWidget'); ?>
		<?php $this->endWidget(); ?>
	</div>
</div>
